/**
 * @输入一个数字用英语显示
 *
 * @author	 wangshikun <wangshikun2010@gmail.com>
 * @copyright	(c) 2012 wangshikun <wangshikun2010@gmail.com>
 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
 * @package	default
 * @subpackage	default
 */

#include <stdio.h>
#include <cs50.h>
#define COUNT 100

int main(int argc, char *argv[]) {
	char *array[10] = {"zero","one","two","three","four","five","six","seven","eight","nine"};
	char num[COUNT];
	int i;

	printf("请输入一个数字：");
	gets(num);

	//对输入的数字进理
	for (i=0; num[i] != 0; i++) {
		printf("%s ", array[(int)(num[i]-48)]);
	}

	printf("\n");

	return 0;
}
